<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // 数值范围
    var min = Number.MIN_VALUE;
    var max = Number.MAX_VALUE;
    console.log(min);
    console.log(max);
    console.log(Number.NEGATIVE_INFINITY);
    console.log(Number.POSITIVE_INFINITY);
    console.log(isFinite(min - 1));
    console.log(isFinite(Number.POSITIVE_INFINITY));

    // NaN
    var nan = 10 / 'ddd';
    console.log(nan);
    console.log(nan == NaN);
    console.log(isNaN(nan));
  </script>
</body>
</html>